import React, { useState } from 'react';
import { Overlay } from 'react-vant';
export default () => {
  const [visible, setVisible] = useState(true);
  return (
    <div className='food-alert'>
      <Overlay visible={visible} onClick={() => setVisible(false)}
        style={{
          width:'100%',
          height: '100%',
          display: 'flex',
          alignItems: 'center',
          justifyContent: 'center',
          boxSizing:'border-box',
          padding:40
        }}>
        <img src="/img/adve/1.png" alt='error' style={{width:'100%',borderRadius:10}} onClick={() => setVisible(false)} />
      </Overlay>
    </div>
  );
};